package com.cpp.pojo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

//id INT PRIMARY KEY AUTO_INCREMENT COMMENT '章节唯一ID',
//course_id INT COMMENT '所属课程ID',
//title VARCHAR(100) COMMENT '章节标题',
//content TEXT COMMENT '章节内容简介',
//duration INT COMMENT '预计学习时长（分钟）',
//        `order` INT COMMENT '章节排序',
//created_at DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间'
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Chapter {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long courseId;
    private String title;
    private String content;
    private Integer duration;
    //章节排序
    private Integer sort;
    private LocalDateTime createdAt;
}
